﻿using ProTrack.Dto;
using ProTrack.Entity;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace ProTrack.IServices.ReturnOrder
{
    /// <summary>
    /// 采购退货
    /// </summary>
    public interface IOrderPoReturnServices
    {
        //获取所有
        public Task<IEnumerable<OrderPoReturn>> GetAllAsync();
        //条件查询
        public Task<IEnumerable<OrderPoReturn>> GetAsync(int PageIndex,int PageSize,string Number, string VendorId, string WarehouseId, string Status);
        //获取总条数
        public Task<int> GetCountAsync(string Number, string VendorId, string WarehouseId, string Status);
        //修改
        public Task <bool> UpdateAsync(OrderPoReturn model,List<OrderPoReturnItem>list);
        //新增
        public Task<bool> AddAsync(OrderPoReturn model, List<OrderPoReturnItem> list);
        //删除
        public Task<bool> DeleteAsync(int Id);
        //批量删除
        public Task<bool> DeleteAsync(int[] Ids);
        public Task<IEnumerable<OrderPoReturnItemDto>> GetOrderPoReturnId(string OrderPoReturnId, string WarehouseId);
        //搜索选择“采购入库”的数据
        public Task<IEnumerable<WhPoInbound>> GetAsyncWhPoInbound(int PageIndex, int PageSize, string Number, string VendorId, string WarehouseId, string Status);
        //获取“采购入库”的总条数
        public Task<int> GetCountWhPoInbound(string Number, string VendorId, string WarehouseId, string Status);

    }
}
